package com.fzh.bookstore.biz.member.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import java.util.Date;
import com.baomidou.mybatisplus.annotation.Version;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import java.io.Serializable;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 用户表
 * </p>
 *
 * @author fang
 * @since 2021-02-26
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("t_biz_member")
@ApiModel(value="Member对象", description="用户表")
public class Member implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.ID_WORKER)
    private String id;

    private String userId;

    @ApiModelProperty(value = "灏忕▼搴忕殑openid")
    private String xcxOpenid;

    @ApiModelProperty(value = "公众号openid")
    private String gzhOpenid;

    @ApiModelProperty(value = "微信开发平台统一id，即微信用户可以通用，数据共享使用")
    private String unionId;

    private String username;

    private String password;

    private String nickname;

    @ApiModelProperty(value = "简介描述")
    private String description;

    private String headImgUrl;

    private String phone;

    private String telephone;

    private String email;

    private String birthday;

    @ApiModelProperty(value = "0未知 1男 2女")
    private Integer sex;

    private Integer status;

    @ApiModelProperty(value = "省")
    private String province;

    @ApiModelProperty(value = "市")
    private String city;

    @ApiModelProperty(value = "区/县")
    private String area;

    @TableField(fill = FieldFill.INSERT)
    private Date createTime;

    private Date updateTime;

    @ApiModelProperty(value = "0：正常  1：删除")
    private Integer delFlag;

    @ApiModelProperty(value = "最后一次登陆时间")
    private Date lastTime;


}
